s=input("请输入一个字符:")
letters,spaces,digits,others=0,0,0,0
for c in s:
    if c.isalpha():
        letters+=1
    elif c.isspace():
        spaces+=1
    elif c.isdigit():
        digits+=1
    else:
        others+=1
print(f"字母：{letters}.空格：{spaces}.数字:{digits}.其他：{others}")